package com.example.springboot_demo.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 江岸
 * @version V1.0
 * @ClassName: mongoUser
 * @description: TODO
 * @date 2020/8/511:19
 * @since V1.0
 */
@Document(collection = "mongoTest")
public class mongoUser {
    @Id
    private Integer id ;
    private String name;
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public mongoUser(Integer id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public mongoUser() {
    }

    @Override
    public String toString() {
        return "mongoUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
